import request, { $http as http } from '@/utils/request';
import api from '@/api'

/**
 * 登录
 */
export const login = async (data) => {
  return http.post(api.login, {
    data,
  });
}

/**
 * 登录信息
 */
export const loguser = async () => {
  return request(api.loguser);
}

/**
 * 登出
 */
export const logout = async () => {
  return request.post(api.logout);
}